package com.eyh.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eyh.mall.entity.PromotionActivity;
import com.eyh.mall.entity.common.Result;
import com.eyh.mall.entity.vo.PromotionActivityPage;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author 李平
 * @NAME PromotionActivityService
 * @PRODUCT_NAME IntelliJ IDEA
 * @PROJECT_NAME graduation_design
 * @MONTH_NAME_FULL 四月
 * @@DAY_NAME_FULL 星期一
 * @Date 2023-04-17 09:21:49
 * @Description 促销活动
 */
public interface PromotionActivityService extends IService<PromotionActivity> {

    /**
     * 创建促销活动
     *
     * @param promotionActivity 推广活动
     * @return {@link Result}
     */
    Result createPromotionActivity(PromotionActivity promotionActivity);

    /**
     * 获得促销活动页面
     *
     * @param promotionActivityPage 促销活动页面
     * @return {@link Result}
     */
    Result getPromotionActivityPage(PromotionActivityPage promotionActivityPage);

    /**
     * 得到进步推广活动
     *
     * @return {@link PromotionActivity}
     */
    PromotionActivity getProgressPromotionActivity();

    /**
     * 得到所有推广活动
     *
     * @return {@link Result}
     */
    Result getAllPromotionActivity();

    /**
     * 得到推广活动qr分享
     *
     * @param userId              用户id
     * @param promotionActivityId 推广活动id
     * @return {@link Result}
     */
    Result getPromotionActivityShareQr(String userId, String promotionActivityId);

}
